#{extends 'orgLead.html' /}
<ul>
#{if topics}

<table style="width: 83%" align="center" border="1" cellspacing="0">
	<tr>
		<th>Topic</th>
		<th>Quick Info</th>
		<th>state</th>			
	</tr>
#{list items:topics, as:'top'}
    <tr>
        <td>
         <a href = "@{application.showTopic(top.id, dep.id)}">${top.title}</a>
        </td>
        <td>
        Total number of ideas: ${top.ideas.size()}
        <hr>
        Total number of promoted ideas:
        </td>
        <td>
        #{if top.isLocked==true}
          Locked
        #{/if}
        #{else}
         opened
        #{/else}  
        </td>
    </tr>   
#{/list}
</table>
#{/if}
#{else}
No Topics in ${dep.name} Department!!
#{/else}
</ul>
<br>
<br>
<a href = "@{Application.viewDepartment(dep.id)}">Back to ${dep.name}</a>